package com.example.mbl.dao;

import com.example.mbl.entity.Event;
import com.example.mbl.result.business.EventPageResult;
import com.example.mbl.result.business.EventResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

public interface EventMapper {
    List<Event> searchItemsByKeyWord(String keyword);

    int deleteByPrimaryKey(String eventid);

    int insert(Event record);

    int insertSelective(Event record);

    Event selectByPrimaryKey(String eventid);

    int updateByPrimaryKeySelective(Event record);

    int updateByPrimaryKey(Event record);

    List<EventPageResult> getEventList(@Param("eventtitle") String eventtitle,
                                       @Param("eventdate") String eventdate,
                                       @Param("eventtype") String eventtype,
                                       @Param("start") int start,
                                       @Param("pagesize") int pagesize,
                                       @Param("eventday") String eventday);

    EventResult getEventItem(String eventid);

    int setEventVisible(String eventid);
}